package com.wmh.baseservice.operationaid.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * @author 谢骏
 * @TableName operation_aid_product_monitor
 * @createDate 2023-09-25 14:47:59
 */
@Data
@Accessors(chain = true)
@TableName("operation_aid_product_monitor")
public class ProductMonitor implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 管理员编号
     */
    @TableField(value = COL_AD_ID)
    private Long adId;

    /**
     * 商品编号
     */
    @TableField(value = COL_PRODUCT_ID)
    private Long productId;

    /**
     * 描述
     */
    @TableField(value = COL_DESCRIPTION)
    private String description;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 已删除 0 是 1否
     */
    @TableField(value = COL_DELETED)
    @TableLogic
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 管理员编号
     */
    public static final String COL_AD_ID = "ad_id";

    /**
     * 商品编号
     */
    public static final String COL_PRODUCT_ID = "product_id";

    /**
     * 描述
     */
    public static final String COL_DESCRIPTION = "description";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 修改时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 已删除 0 是 1否
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
